package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户 对象 users
 * 
 * @author ruoyi
 * @date 2022-12-08
 */
public class Users extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id 用户id */
    private Long userId;

    /** 用户名 用户名 */
    @Excel(name = "用户名 用户名")
    private String username;

    /** 密码 密码 */
    @Excel(name = "密码 密码")
    private String password;

    /** 昵称 昵称 */
    @Excel(name = "昵称 昵称")
    private String nickname;

    /** 真实姓名 真实姓名 */
    @Excel(name = "真实姓名 真实姓名")
    private String realname;

    /** 头像 头像 */
    @Excel(name = "头像 头像")
    private String userImg;

    /** 手机号 手机号 */
    @Excel(name = "手机号 手机号")
    private String userMobile;

    /** 邮箱地址 邮箱地址 */
    @Excel(name = "邮箱地址 邮箱地址")
    private String userEmail;

    /** 性别 M(男) or F(女) */
    @Excel(name = "性别 M(男) or F(女)")
    private String userSex;

    /** 生日 生日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生日 生日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date userBirth;

    /** 注册时间 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "注册时间 创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date userRegtime;

    /** 更新时间 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间 更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date userModtime;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String salt;

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setNickname(String nickname) 
    {
        this.nickname = nickname;
    }

    public String getNickname() 
    {
        return nickname;
    }
    public void setRealname(String realname) 
    {
        this.realname = realname;
    }

    public String getRealname() 
    {
        return realname;
    }
    public void setUserImg(String userImg) 
    {
        this.userImg = userImg;
    }

    public String getUserImg() 
    {
        return userImg;
    }
    public void setUserMobile(String userMobile) 
    {
        this.userMobile = userMobile;
    }

    public String getUserMobile() 
    {
        return userMobile;
    }
    public void setUserEmail(String userEmail) 
    {
        this.userEmail = userEmail;
    }

    public String getUserEmail() 
    {
        return userEmail;
    }
    public void setUserSex(String userSex) 
    {
        this.userSex = userSex;
    }

    public String getUserSex() 
    {
        return userSex;
    }
    public void setUserBirth(Date userBirth) 
    {
        this.userBirth = userBirth;
    }

    public Date getUserBirth() 
    {
        return userBirth;
    }
    public void setUserRegtime(Date userRegtime) 
    {
        this.userRegtime = userRegtime;
    }

    public Date getUserRegtime() 
    {
        return userRegtime;
    }
    public void setUserModtime(Date userModtime) 
    {
        this.userModtime = userModtime;
    }

    public Date getUserModtime() 
    {
        return userModtime;
    }
    public void setSalt(String salt) 
    {
        this.salt = salt;
    }

    public String getSalt() 
    {
        return salt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("username", getUsername())
            .append("password", getPassword())
            .append("nickname", getNickname())
            .append("realname", getRealname())
            .append("userImg", getUserImg())
            .append("userMobile", getUserMobile())
            .append("userEmail", getUserEmail())
            .append("userSex", getUserSex())
            .append("userBirth", getUserBirth())
            .append("userRegtime", getUserRegtime())
            .append("userModtime", getUserModtime())
            .append("salt", getSalt())
            .toString();
    }
}
